package com.cqjtu.eecs.entity.params.analysisType;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @description: 新增分析类别参数校验
 * @author: 徐文升
 * @create: 2022-03-01 10:38
 **/


@Data
@EqualsAndHashCode
public class AnalysisTypeAddParams {
    @ApiModelProperty(value = "分析类别代码")
    private Integer analysisTypeId;

    @NotBlank(message = "分析类别名不能为空")
    @ApiModelProperty(value = "分析类别名", required = true)
    private String analysisTypeName;

    @ApiModelProperty(value = "上级分析类别代码")
    private Integer preAnalysisTypeId;
}